Learn R Programming

Directional (version 4.0)

Prediction in discriminant analysis based on ESAG distribution: Prediction of a new observation using discriminant analysis based on ESAGdistribution

Description

Prediction of a new observation using discriminant analysis based on ESAG distribution.

Usage

ESAGda.pred(ynew, y, ina)

Arguments

ynew

The new observation(s) (unit vector(s)) whose group is to be predicted.

y

A data matrix with unit vectors, i.e. spherical directional data.

ina

A vector indicating the groups of the data y.

Value

A vector with the predicted group of each new observation.

Details

Prediction of the class of a new spherical vector assuming ESAG distribution.

References

Mardia, K. V. and Jupp, P. E. (2000). Directional statistics. Chicester: John Wiley & Sons.

Paine P.J., Preston S.P., Tsagris M. and Wood A.T.A. (2017). An Elliptically Symmetric Angular Gaussian Distribution. Statistics and Computing, 28((3):689--697.

See Also

ESAG.da, vmfda.pred, dirknn, knn.reg

Examples

Run this code
# NOT RUN {
m1 <- rnorm(3)
m2 <- rnorm(3) + 0.5
y <- rbind( rvmf(100, m1, 3), rvmf(80, m2, 5) )
ina <- c( rep(1,100), rep(2, 80) )
ynew <- rbind(rvmf(10, m1, 10), rvmf(10, m2, 5))
id <- rep(1:2, each = 10)
g <- ESAGda.pred(ynew, y, ina)
table(id, g)
# }

Run the code above in your browser using DataLab